package it.polimi.traveldream.web;

import java.util.ArrayList;

import it.polimi.traveldream.CreatedPackageDTO;
import it.polimi.traveldream.CreazionePacchettoLocal;
import it.polimi.traveldream.GestioneRicercaLocal;
import it.polimi.traveldream.PackageDTO;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

@ManagedBean(name="packageBean")
@RequestScoped
public class PackageBean {
	
	@EJB
	private CreazionePacchettoLocal creazionePacchettoLoca;
	
	private CreatedPackageDTO current;
	
	
	public PackageBean(){
		this.current=new CreatedPackageDTO();
	}
	
	public CreatedPackageDTO getCurrent(){
		return this.current;
	}
	
	public void setCurrent(CreatedPackageDTO current){
		this.current=current;
	}

	public void create(){
		System.out.print("entrato in create");
		creazionePacchettoLoca.add(current);
	}
	
	
	
	
	
}
